/*
 * @Author: error: git config user.name & please set dead value or install git
 * @Date: 2022-08-21 14:33:25
 * @LastEditors: error: git config user.name & please set dead value or install git
 * @LastEditTime: 2023-12-12 19:06:29
 * @FilePath: /magic-poetry-main/src/router/index.js
 * @Description: 
 * 
 * Copyright (c) 2023 by 深木, All Rights Reserved. 
 */
import { createRouter, createWebHashHistory } from 'vue-router'

import Home from "@/views/Home";
import Question from "@/views/Question";
import Knowledge from "@/views/Knowledge";
import AddBooksView from "@/views/AddBooksView";
import ExamPaper from "@/views/ExamPaper";
import Chapter from "@/views/chapter";
import Details from "@/views/details";
import Answer from "@/views/answer";
import Ceshi from "@/views/ceshi";
import ReadingMode from "@/views/ReadingMode";



const routes = [
  {
    path: '/',
    name:'index',
    redirect:'/home',
  },

  //  index
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/question',
    name: 'question',
    component: Question
  },
  {
    path: '/knowledge',
    name: 'knowledge',
    component: Knowledge
  },
  //  
  {
    path: '/addbooks',
    name: 'addbooks',
    component: AddBooksView
  },
  {
    path: '/exampaper',
    name: 'exampaper',
    component: ExamPaper
  },
  {
    path: '/chapter',
    name: 'chapter',
    component: Chapter
  },
  {
    path: '/details',
    name: 'details',
    component: Details
  },
  {
    path: '/answer',
    name: 'answer',
    component: Answer
  }, {
    path: '/ceshi',
    name: 'ceshi',
    component: Ceshi
  },{
    path: '/reading',
    name: 'reading',
    component: ReadingMode
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
